<template>
  <headPage></headPage>
  <div class="main_box information">
    <div class="navigate_view">
      <span class="navigate_text" @click="goHome">首页</span>
      <span class="navigate_line">/</span>
      <span class="navigate_last_text">关于我们</span>
    </div>
    <div class="details" v-loading="loading">
      <div class="title">{{ detailsInfo.name }}</div>
      <!-- <div class="date">{{ detailsInfo.create_time }}</div> -->
      <div class="parse" v-html="detailsInfo.content"></div>
    </div>
  </div>
  <footerPage></footerPage>
</template>


<script name="helpDetails" setup>
import {post641568f1b6f87} from "@/utils/api.js";
import headPage from "@/components/headPage.vue";
import footerPage from "@/components/footerPage.vue";
import { ref, onMounted } from "vue";
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
const route = useRoute();

let aid = route.query.aid;

onMounted(() => {
  getDetails();
});
// 获取详情
let detailsInfo = ref({});
let loading = ref(true);
const getDetails = () => {
  post641568f1b6f87({
    column_id: 6
  }).then(res => {
    // console.log(res);
    loading.value = false;
    if (res.code == 1) {
      detailsInfo.value = res.data;
    }
  }).catch(err => {
    console.log(err);
  })
};
function goHome() {
  router.push({
    path: "/",
  });
}

</script>

<style lang="scss" scoped>
.navigate_view {
  display: flex;
  align-items: center;
  padding: 0 0 12px 0;
  .navigate_text {
    font-size: 9px;
    color: #666;
    cursor: pointer;
  }
  .navigate_line {
    font-size: 9px;
    color: #bfbfbf;
    margin: 0 5px;
  }
  .navigate_last_text {
    font-size: 9px;
    color: #1f52ae;
    cursor: pointer;
  }
}
.information {
  margin-top: 97px;
  margin-bottom: 24px;
  padding: 18px 16px;
//   background: #fff;
  
}
.details {
  min-height: 358px;
  background: #fff;
  padding: 26.5px 158.5px 20px;
  .title {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
  }
  .date {
    padding: 15px 0 13px;
    font-size: 7px;
    color: #999;
    border-bottom: 1px solid #eee;
    text-align: center;
  }
  .parse {
    margin-top: 40px;
    font-size: 9px;
  }
}

.save_btn {
  width: 120px;
  height: 24px;
  background: #1f52ae;
  font-size: 8px;
  color: #fff;
  border-radius: 3px;
  margin: 32px 0 0 47px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
</style>